package com.syedu.day07;

import java.time.LocalDate;

public class Employee {
    private String name;
    private int age;
    private LocalDate hireDate;
    private double salary;

    public Employee() {
    }

    /**
     * this关键字表示当前对象的...
     * this.name 表示当前对象的name属性
     * 作用是用来区分同名变量的
     */
    public Employee(String name, int age, LocalDate hireDate, double salary) {
        this.name = name;
        this.age = age;
        this.hireDate = hireDate;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public LocalDate getHireDate() {
        return hireDate;
    }

    public void setHireDate(LocalDate hireDate) {
        this.hireDate = hireDate;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    /**行为*/
    public void work() {
        System.out.println("员工在工作...");
    }
}